package com.sunnada.nginx.service;

import com.sunnada.nginx.bean.nginx.http.Location;
import com.sunnada.nginx.exception.CustonException;

import java.util.List;

public interface RuleService {
    List<Location> list(String nameAndPort) throws CustonException;

    Object get(String name, String port, String rule) throws CustonException;

    boolean post(String name, String port, Location location) throws CustonException;

    boolean put(String name, String port, Location location) throws CustonException;

    boolean delete(String name, String port,String rule) throws CustonException;
}
